upstream web_pool {
    server 172.16.1.7;
    server 172.16.1.8;
}

server {
    listen 80;
    server_name  word.luffy.com kod.luffy.com;
    location / {
        rewrite ^(.*) https://$host$1 redirect;
    }
}

server {
    listen       443 ssl;
    ssl_certificate /etc/nginx/ssl_key/server.crt;
    ssl_certificate_key /etc/nginx/ssl_key/server.key;

    server_name  blog.luffy.com kod.luffy.com;

    location / {
        proxy_pass http://web_pool;
        include proxy_params;
    }
}
